/* Ejercicio 4.29 : ejer4_29.c
   De Morgan's Laws */
#include <stdio.h>

/* funcion main, el programa inicia aca */
int main( void )
{
    int x = 4;
    int y = 9;
    int a = 5;
    int b = 5;
    int g = 4;
    int i = 4;
    int j = 9;

    printf( "!( x < 5 ) && !( y >= 7 ) --> %d\n", !( x < 5 ) && !( y >= 7 ) );
    printf( "!( ( x < 5 ) || ( y >= 7 ) ) --> %d\n", !( ( x < 5 ) || ( y >= 7 ) ) );
    printf( "!( a == b ) || !( g != 5 ) --> %d\n", !( a == b ) || !( g != 5 ) );
    printf( "!( ( a == b ) && ( g != 5 ) ) --> %d\n", !( ( a == b ) && ( g != 5 ) ) );
    printf( "!( ( x <= 8 ) && ( y > 4 ) ) -> %d\n", !( ( x <= 8 ) && ( y > 4 ) ) );
    printf( "!( x <= 8 ) || !( y > 4 ) -> %d\n", !( x <= 8 ) || !( y > 4 ) );
    printf( "!( ( i > 4 ) || ( j <= 6 ) ) --> %d\n", !( ( i > 4 ) || ( j <= 6 ) ) );
    printf( "!( i > 4 ) && !( j <= 6 ) --> %d\n", !( i > 4 ) && !( j <= 6 ) );
	return 0;
} /* fin de la funcion main */
